<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        {include file="common/head" /}
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote">欢迎管理员：
                                <span class="x-red">{$userInfo.nickname}</span>！当前时间:<span id="time"></span>

                                <a class="layui-btn layui-btn-small" style="margin-top:-3px;float:right" onclick="location.reload()" title="刷新">
                                    <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
                                </a>
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">数据统计</div>
                        <div class="layui-card-body ">
                            <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('Member/index')}" class="x-admin-backlog-body">
                                        <h3>用户数量</h3>
                                        <p><cite>{$count['userCount']}</cite>
                                            <cite style="color: red">（{$count['userNowCount']}）</cite>
                                        </p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('UserCar/index')}" class="x-admin-backlog-body">
                                        <h3>车源数量</h3>
                                        <p>
                                            <cite>{$count['carCount']}</cite>
                                            <cite>（{$count['carNowCount']}）</cite>
                                        </p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('UserCar/shcar')}" class="x-admin-backlog-body">
                                        <h3>待审核车辆</h3>
                                        <p>
                                            <cite>{$count['carSHCount']}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('UserCar/message')}" class="x-admin-backlog-body">
                                        <h3>待审核车辆评论</h3>
                                        <p>
                                            <cite>{$count['carPLCount']}</cite></p>
                                    </a>
                                </li>

                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('article/message')}" class="x-admin-backlog-body">
                                        <h3>待审核文章评论</h3>
                                        <p>
                                            <cite>{$count['articlePLCount']}</cite></p>
                                    </a>
                                </li>



                                <!--<li class="layui-col-md2 layui-col-xs6">-->
                                    <!--<a href="{:url('order/index')}" class="x-admin-backlog-body">-->
                                        <!--<h3>已支付订单</h3>-->
                                        <!--<p>-->
                                            <!--<cite>{$count['orderCount']}</cite></p>-->
                                    <!--</a>-->
                                <!--</li>-->
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('order/index')}" class="x-admin-backlog-body">
                                        <h3>待服务订单</h3>
                                        <p>
                                            <cite>{$count['svrCount']}</cite></p>
                                    </a>
                                </li>


                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('Member/refund')}" class="x-admin-backlog-body">
                                        <h3>提现申请数量</h3>
                                        <p>
                                            <cite>{$count['userRefund']}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('Article/index')}" class="x-admin-backlog-body">
                                        <h3>文章数</h3>
                                        <p>
                                            <cite>{$count['articleCount']}</cite></p>
                                    </a>
                                </li>

                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('UserCar/index')}" class="x-admin-backlog-body">
                                        <h3>今日新增车源</h3>
                                        <p>
                                            <cite>{$count['dayCarCount']}</cite></p>
                                    </a>
                                </li>

                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('UserCar/message')}" class="x-admin-backlog-body">
                                        <h3>今日新增车辆留言</h3>
                                        <p>
                                            <cite>{$count['dayCarMsgCount']}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('article/message')}" class="x-admin-backlog-body">
                                        <h3>今日新增文章留言</h3>
                                        <p>
                                            <cite>{$count['dayArticleCount']}</cite></p>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">系统信息</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版本</th>
                                        <td>1.0.0</td></tr>
                                    <tr>
                                        <th>操作系统</th>
                                        <td>{$sys_info.os}</td></tr>
                                    <tr>
                                        <th>运行环境</th>
                                        <td>{$sys_info.web_server}</td></tr>
                                    <tr>
                                        <th>PHP版本</th>
                                        <td>{$sys_info.phpv}</td></tr>
                                    <tr>
                                        <th>GD 版本:</th>
                                        <td>{$sys_info.gdinfo}</td></tr>
                                    <tr>
                                        <th>MYSQL版本</th>
                                        <td>{$sys_info.mysql_version}</td></tr>
                                    <tr>
                                        <th>ThinkPHP</th>
                                        <td>{$sys_info.version}</td></tr>
                                    <tr>
                                        <th>上传附件限制</th>
                                        <td>{$sys_info.fileupload}</td></tr>
                                    <tr>
                                        <th>最大占用内存</th>
                                        <td>{$sys_info.memory_limit}</td></tr>
                                    <tr>
                                        <th>执行时间限制</th>
                                        <td>{$sys_info.max_ex_time}</td></tr>
                                    <tr>
                                        <th>Zlib支持:</th>
                                        <td>{$sys_info.zlib}</td></tr>
                                    <tr>
                                        <th>Curl支持:</th>
                                        <td>{$sys_info.curl}</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">开发团队</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版权所有</th>
                                        <td>Andy</td>
                                    </tr>
                                    <tr>
                                        <th>开发者</th>
                                        <td>Andy(191142742@qq.com)</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote layui-quote-nm">感谢Thinkphp,layui,百度Echarts,jquery,提供技术支持。</blockquote></div>
            </div>
        </div>
        </div>


        <script type="text/javascript">
            getTime();
            var t= setInterval("getTime()",1000);
            function getTime() {
                var date=new Date();
                var year=date.getFullYear();
                var month=date.getMonth()+1;
                var day=date.getDate();
                var hour=date.getHours();
                var minu=date.getMinutes();
                var sec=date.getSeconds();

                if(month<10) month="0"+month;
                if(day<10) day="0"+day;
                if(hour<10) day="0"+hour;
                if(minu<10) day="0"+minu;
                if(sec<10) day="0"+sec;


                var time=`${year}-${month}-${day} ${hour}:${minu}:${sec}`;

                $("#time").html(time);
            }


        </script>
    </body>
</html>